package com.xiaodu.acer.phoneplay.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author 小杜
 *         邮箱:m15701207383@163.com
 * @version V1.0
 * @Description: 储存搜索记录
 * @date 2018/1/19 13:46
 */
@Entity
public class SearchHistoryBean {
    //不能用int true代表自增
    @Id(autoincrement = true)
    private Long id;

    //商品名称
    @Unique //代表唯一
    private String name;

    @Generated(hash = 1913301682)
    public SearchHistoryBean(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    @Generated(hash = 1570282321)
    public SearchHistoryBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SearchHistoryBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
